package com.ihr360.commons.model.entity;

import com.ihr360.commons.model.type.ICompanyId;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;

/**
 * 带公司id的数字类型主键
 * @author davidwei
 **/
@MappedSuperclass
public abstract class NumberIdWithTimeAndCompanyId<T extends Number> extends NumberIdWithTime<T> implements ICompanyId {
    @Column(length =40,nullable = false,name = "companyId")
    private String companyId;

    @Override
    public String getCompanyId() {
        return companyId;
    }
    @Override
    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }
}